package com.eastfair.home.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.*;
import com.eastfair.venueservice.vo.ServiceInventoryInFlowVO;
import com.eastfair.venueservice.vo.ServiceInventoryOutFlowVO;
import com.eastfair.venueservice.vo.ServiceInventoryVO;
import com.eastfair.venueservice.vo.ServiceSpecsVO;

import java.util.List;

/**
 * @Author suolong
 * @Date 2022/8/9 9:44
 */

public interface HomeServiceInventoryService {

    /**
     * 插入入库流水
     * @param serviceInventoryInFlowDTO
     * @return
     */
    R<Boolean> saveInFlow(ServiceInventoryInFlowDTO serviceInventoryInFlowDTO);

    /**
     * 插入出库流水
     * @param serviceInventoryOutFlowDTO
     * @return
     */
    R<Boolean> saveOutFlow(ServiceInventoryOutFlowDTO serviceInventoryOutFlowDTO);

    /**
     * 查询库存列表
     * @param serviceInventoryQuery
     * @return
     */
    R<Page<ServiceInventoryVO>> queryInventoryList(PageParams<ServiceInventoryQuery> serviceInventoryQuery);

    /**
     * 查询入库记录
     * @param serviceInventoryQuery
     * @return
     */
    R<Page<ServiceInventoryInFlowVO>> queryInFlowList(PageParams<ServiceInventoryInFlowQuery> serviceInventoryQuery);

    /**
     * 查询出库记录
     * @param serviceInventoryOutFlowQuery
     * @return
     */
    R<Page<ServiceInventoryOutFlowVO>> queryOutFlowList(PageParams<ServiceInventoryOutFlowQuery> serviceInventoryOutFlowQuery);
}
